import { post, get } from '../../../request.js'

/**
 * 分页查询
 * @param {*} params
 * @returns
 */
export const listFile = params => {
    return post({
        url: '/tool/file/pageList',
        params,
        loading: true
    })
}

/**
 * 上传文件
 * @param {*} params
 * @returns
 */
export const uploadFile = params => {
    return post({
        url: '/tool/file/upload',
        params,
        loading: true
    })
}

/**
 * 删除文件
 * @param {*} params
 * @returns
 */
export const deleteFile = params => {
    return get({
        url: '/tool/file/deleteFile',
        params,
        loading: true
    })
}
